package com.nCoV.EpidemicSurveillance.controller;

import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nCoV.EpidemicSurveillance.service.AddCsvService;

/**
 * @author 张浩田
 * @date 2020年3月10日
 */

@Controller
public class AddDatawithCsv {
	
	@Autowired
	AddCsvService addCsvService;
	
	@RequestMapping("/addcsv")
	@ResponseBody
	public Map<String, Object> addCsvData(){
		Map<String,Object> map = addCsvService.addCsvData();
		return map;
	}
}
